<%--
  Created by IntelliJ IDEA.
  User: 86180
  Date: 2020/6/21
  Time: 22:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>
<head>
    <title>Title</title>
</head>
<%--接收和判断数据并将它们提示的消息输出来  比如注册成功，失败等等--%>
<c:if test="${result!=null}">
    <script type="text/javascript">
        alert("${result}");
    </script>

</c:if>
<%--简单的html代码--%>

<body>

    <h1>登录：</h1>
    <form action="/testweb_war_exploded/login" method="post">
        用户名<input type="text"  name="username">
        密码<input type="text" name="password">
        <button type="submit">登录</button>
    </form>

    <h1>注册：</h1>
    <form action="/testweb_war_exploded/zhuce" method="post">
        用户名<input type="text"  name="username">
        密码<input type="text" name="password">
        <button type="submit">注册</button>
    </form>
</body>
</html>
